Release 10.1A: OpenEdge Data Management:
SQL Reference
TRANSLATE
Translates each character in
char_expressionthat is infrom_setto the corresponding character into_set. The translated character string is returned as the result.Syntax
Example
This example substitutes underscores for spaces in customer names:
Notes
char_expression,from_set, andto_setcan be any character expression.- For each character in
char_expression,TRANSLATEchecks for the same character infrom_set.- If it is in
from_set,TRANSLATEtranslates it to the corresponding character into_set(if the character is thenth character infrom_set, thenth character into_set).- If the character is not in
from_setTRANSLATEdoes not change it.- If
from_setis longer thanto_set,TRANSLATEdoes not change trailing characters infrom_setthat do not have a corresponding character into_set.- If either
from_setorto_setisNULL,TRANSLATEdoes nothing.Compatibility
Progress extension
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |